<div class="item bgr_banner bder_b1_d5">
    <div class="main">
        <div class="fr frm_banner">
            <div class="fl pd14 bgrtop_frm">
                <img src="<?php echo base_url(); ?>public/images/search_form.png" width="26" height="25" border="0" alt="Search" title="Search" />
                <strong class="red f14">&nbsp;Holiday Search</strong>
                <form action="<?php echo base_url(); ?>home/search" method="get">
                    <div class="item pdt4">Destination<br />
                        <select name="destinations" class="item">
                            <option value="0">Select destinations</option>
                            <?php
                            if(isset($destination) && $destination != NULL){
                                foreach($destination as $destina){
                                    echo "<option value='".$destina['destina_id']."'>".$destina['destina_title']."</option>";
                                }
                            }
                            ?>
                        </select>
                    </div>
                    <div class="item pdt4">Holiday Types<br />
                        <select name="holiday" class="item">
                            <option value="0">Select holiday</option>
                            <?php
                            if(isset($holiday) && $holiday != NULL){
                                foreach($holiday as $holi){
                                    echo "<option value='".$holi['id']."'>".$holi['name']."</option>";
                                }
                            }
                            ?>
                        </select>
                    </div>
                    <div class="item pdt4">Duration<br />
                        <select name="duration" class="item">
                            <option value="0">Select duration</option>
                            <option value="1">1 - 5 days</option>
                            <option value="2">6 - 10 days</option>
                            <option value="3">More than</option>

                        </select>
                    </div>
                    <input type="submit" value="SEARCH" name="search" class="asearch_form fr bold mgt10" />
                </form>
            </div>
        </div>
    </div>
    <?php $this->load->view('public/nivo'); ?>
</div>
<div class="main">
    <div class="item pdb35" id="content">
        <?php $this->load->view('public/cut_str'); ?>
        <?php
        if(isset($destination) && $destination != NULL){
            $stt = 0;
            foreach($destination as $items){
                if($stt == 0){
                    ?>
                    <div class="fl bgr_boxtopnew">
                        <div class="fl boxtopnew"><img src="<?php echo base_url()."public/images/".$items['destina_icon']; ?>" width="23" height="23" class="fl mgr4" alt="<?php echo $items['destina_title']; ?>" title="<?php echo $items['destina_title']; ?>" /> <h1 class="toph1"><a href="<?php echo base_url()."destinations/".$items['destina_rewrite']."-".$items['destina_id']; ?>.html" class="red"><?php echo $items['destina_title']; ?></a></h1> <img src="<?php echo base_url(); ?>uploads/category/thumb/<?php echo $items['destina_image']; ?>" width="261" class="imgtitle mgt10" height="122" alt="<?php echo $items['destina_title']; ?>" title="<?php echo $items['destina_title']; ?>" />
                            <p><?php echo strip_tags($items['destina_info']) ?></p>
                            <a href="<?php echo base_url()."destinations/".$items['destina_rewrite']."-".$items['destina_id']; ?>.html" class="red" title="Discover more">Discover more &raquo;</a> </div>
                    </div>
                    <?php }else{ ?>
                    <div class="fl bgr_boxtopnew mgl37">
                        <div class="fl boxtopnew"><img src="<?php echo base_url()."public/images/".$items['destina_icon']; ?>" width="23" height="23" class="fl mgr4" alt="<?php echo $items['destina_title']; ?>" title="<?php echo $items['destina_title']; ?>" /> <h1 class="toph1"><a href="<?php echo base_url()."destinations/".$items['destina_rewrite']."-".$items['destina_id']; ?>.html" class="red"><?php echo $items['destina_title']; ?></a></h1> <img src="<?php echo base_url(); ?>uploads/category/thumb/<?php echo $items['destina_image']; ?>" width="261" class="imgtitle mgt10" height="122" alt="<?php echo $items['destina_title']; ?>" title="<?php echo $items['destina_title']; ?>" />
                            <p><?php echo strip_tags($items['destina_info']); ?></p>
                            <a href="<?php echo base_url()."destinations/".$items['destina_rewrite']."-".$items['destina_id']; ?>.html" class="red" title="Discover more">Discover more &raquo;</a> </div>
                    </div>
                    <?php } $stt++; } } ?>
        <div class="cls" style="padding:15px 0px"></div>
        <script type="text/javascript">
		$(document).ready(function(){
			$(".holitem").eq(0).show();
		    $("ul.tophol li a").click(function(){
				$class = $(this).attr("name");
				$(".active").removeClass("active");
				$(this).addClass("active");
				$(".holitem").hide();
				$("."+$class).show();
			});
		});
        </script>
        <div class="item">
            <div class="fl w629 pdt12"> 
            	<div class="item bder_rdus3 mgb10">
                    <div class="fl mgt15 w627">
                    	<ul class="tophol">
                    		<li><a href="javascript:void(0)" name="hol1" title="TOP VIETNAM HOLIDAYS - VIETNAM TOURS" class="active">TOP VIETNAM HOLIDAYS</a></li>
                    		<li><a href="javascript:void(0)" name="hol2" title="TOP CAMBODIA HOLIDAYS - CAMBODIA TOURS">TOP CAMBODIA HOLIDAYS</a></li>
                    		<li><a href="javascript:void(0)" name="hol3" title="TOP LAOS HOLIDAYS - LAOS TOURS">TOP LAOS HOLIDAYS</a></li>
                    	</ul>
                        <div class="w587 bder_d5 bder_rdus3 bgr_fff holcon">
                        	<div class="holitem hol1">
                            	<img src="<?php echo base_url(); ?>public/images/02.jpg" alt="Top Vietnam holiday tours 2014" title="Top Vietnam holiday tours 2014" width="130" height="90" class="fl mgr22"/>
                                <h3 class="red f12">Top Vietnam holiday tours 2014</h3>
                                <div class="holinfo">
                                	Enjoy your fantastic <strong>Vietnam holidays</strong> at the most popular destinations throughout this charming city that suites whatever your travel preferences and at the best prices. Select one of the best <strong>Vietnam tours</strong> below and facilitate your trip with our excellent customer services!
                                </div>
                                <div class="cls"></div>
                                <div class="mgt5 mgb5"></div>
                                <div class="moretour fl">
                                	<?php if(isset($topviet) && $topviet != NULL){ $st=0; foreach($topviet as $viet){ ?>
                                	<div class="toursh" <?php if($st == 4){ echo "style='margin:0px'";} ?>>
                                    	<h3><a href="<?php echo base_url()."tours/".$viet['tours_rewrite']."-".$viet['tours_id']; ?>.html" class="toursha" title="<?php echo $viet['tours_title'] ?>"><?php echo $viet['tours_title'] ?></a></h3>
                                    	<a href="<?php echo base_url()."tours/".$viet['tours_rewrite']."-".$viet['tours_id']; ?>.html"><img src="<?php echo base_url(); ?>uploads/tours/thumb/<?php echo $viet['tours_image'] ?>" width="90" height="55" alt="<?php echo $viet['tours_title'] ?>" title="<?php echo $viet['tours_title'] ?>"  class="tourshimg" /></a>
                                    </div>
                                	<?php $st++; } } ?>
                                    <div class="cls"></div>
                                </div>
                            </div>
                        	<div class="holitem hol2">
                            	<img src="<?php echo base_url(); ?>public/images/more/Luang-Prabang.jpg" alt="Top Cambodia holiday tours 2014" title="Top Cambodia holiday tours 2014" width="130" height="90" class="fl mgr22"/>
                                <h3 class="red f12">Top Cambodia holiday tours 2014</h3>
                                <div class="holinfo">
                                	Immerse yourself in timeless legend and fascinating beauty at our carefully handpicked destinations for a 'no-regret' <strong>Cambodia holidays</strong>. Don't have to think too much because whichever  <strong>Cambodia tours</strong>  below will surely meet the most discerning expectations from <strong>attractions</strong> to accommodations and customer services 
                                </div>
                                <div class="cls"></div>
                                <div class="mgt5 mgb5"></div>
                                <div class="moretour fl">
                                	<?php if(isset($topcamb) && $topcamb != NULL){ $st=0; foreach($topcamb as $cam){ ?>
                                	<div class="toursh" <?php if($st == 4){ echo "style='margin:0px'";} ?>>
                                    	<h3><a href="<?php echo base_url()."tours/".$cam['tours_rewrite']."-".$cam['tours_id']; ?>.html" class="toursha" title="<?php echo $cam['tours_title'] ?>"><?php echo $cam['tours_title'] ?></a></h3>
                                    	<a href="<?php echo base_url()."tours/".$cam['tours_rewrite']."-".$cam['tours_id']; ?>.html"><img src="<?php echo base_url(); ?>uploads/tours/thumb/<?php echo $cam['tours_image'] ?>" width="90" height="55" alt="<?php echo $cam['tours_title'] ?>" title="<?php echo $cam['tours_title'] ?>"  class="tourshimg" /></a>
                                    </div>
                                	<?php $st++; } } ?>
                                    <div class="cls"></div>
                                </div>
                            </div>
                        	<div class="holitem hol3">
                            	<img src="<?php echo base_url(); ?>public/images/more/Vang-vieng.jpg" alt="Top Laos holiday tours 2014" title="Top Laos holiday tours 2014" width="130" height="90" class="fl mgr22"/>
                                <h3 class="red f12">Top Laos holiday tours 2014</h3>
                                <div class="holinfo">
                                	More than 10 year experience in <strong>Laos travel</strong> brings us in-depth understandings of the destination and what you, our prestigious guests expect. The following <strong>Laos tours</strong> are the best sell and the highest voted <strong>Laos holidays</strong> by thousands of <strong>tourists</strong> for years that enhance our confidence to recommend you!
                                </div>
                                <div class="cls"></div>
                                <div class="mgt5 mgb5"></div>
                                <div class="moretour fl">
                                	<?php if(isset($toplaos) && $toplaos != NULL){ $st=0; foreach($toplaos as $laos){ ?>
                                	<div class="toursh" <?php if($st == 4){ echo "style='margin:0px'";} ?>>
                                    	<h3><a href="<?php echo base_url()."tours/".$laos['tours_rewrite']."-".$laos['tours_id']; ?>.html" class="toursha" title="<?php echo $laos['tours_title'] ?>"><?php echo $laos['tours_title'] ?></a></h3>
                                    	<a href="<?php echo base_url()."tours/".$laos['tours_rewrite']."-".$laos['tours_id']; ?>.html"><img src="<?php echo base_url(); ?>uploads/tours/thumb/<?php echo $laos['tours_image'] ?>" width="90" height="55" alt="<?php echo $laos['tours_title'] ?>" title="<?php echo $laos['tours_title'] ?>"  class="tourshimg" /></a>
                                    </div>
                                	<?php $st++; } } ?>
                                    <div class="cls"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            	<img src="<?php echo base_url(); ?>public/images/icon_recomment.png" class="fl" width="23" alt="Recommended Vietnam tours - Vietnam holidays" title="Recommended Vietnam tours - Vietnam holidays" height="23" />
                <h2 class="red fl f14 pdt4 pdl12">RECOMMENDED HOLIDAYS</h2>
                <div class="item bder_rdus3">
                    <div class="fl mgt15 w627 bder_d5 bder_rdus3 bgr_fff">
                        <?php
                        if(isset($recommended) && $recommended != NULL){
                            $i=1;
                            foreach($recommended as $recom){
                                ?>
                                <div <?php if($i>1){ echo "style='display: none;'"; } ?> class="fl an<?php echo $i;?> bo pdt20 w580 pdl16 boxtoprecomment">
                                    <img src="<?php echo base_url(); ?>uploads/tours/thumb/<?php echo $recom['tours_image']; ?>" width="232" height="117" alt="<?php echo $recom['tours_title']; ?>" title="<?php echo $recom['tours_title']; ?>" class="fl bder_rdus3 mgr22"/>
                                    <h3 class="red f12"><a style="width: 250px;margin-bottom: 10px;" class="red fl bold " href="<?php echo base_url()."tours/".$recom['tours_rewrite']."-".$recom['tours_id']; ?>.html">
                                        <?php echo ucfirst($recom['tours_title']); ?></a></h3>
                                    <p class="pcomment fl">Duration: <strong><?php echo $recom['tours_type']; ?></strong></p>
                                    <p style="width: 323px; margin:0px 0px 8px 0px;" class="gray fl"><?php echo cut_str($recom['tours_short_info'],0,130); ?><a href="<?php echo base_url()."tours/".$recom['tours_rewrite']."-".$recom['tours_id']; ?>.html" class="acomment red">...More Details>></a></p>
                                    <p class="f17 pcomment fl">Price from: <strong class="red">$<?php echo $recom['tours_price']; ?></strong></p>
                                </div>
                                <?php
                                $i++;
                            }
                        }
                        ?>
                        <?php
                        if(isset($recocruise) && $recocruise != NULL){
                            foreach($recocruise as $recom){
                                ?>
                                <div style="display: none;" class="fl an<?php echo $i;?> bo pdt20 w580 pdl16 boxtoprecomment">
                                    <img src="<?php echo base_url(); ?>uploads/cruises/thumb/<?php echo $recom['cruise_image']; ?>" width="232" height="117" alt="<?php echo $recom['cruise_name']; ?>" title="<?php echo $recom['cruise_name']; ?>" class="fl bder_rdus3 mgr22"/>
                                    <h3 class="red f12">
                                        <a style="width: 250px;margin-bottom: 10px;" class="red fl bold " href="<?php echo base_url()."luxury-cruises/".$recom['cruise_rewrite']."-".$recom['cruise_id']; ?>.html">
                                            <?php echo ucfirst($recom['cruise_name']); ?></a></h3>
                                    <p class="pcomment fl">Duration: <strong> 2 days 1 night - 3 days 2 nights</strong></p>
                                    <p style="width: 323px; margin:0px 0px 8px 0px;" class="gray fl">
                                        <?php echo cutstr(strip_tags($recom['cruise_info']),150,false); ?>
                                        <a href="<?php echo base_url()."luxury-cruises/".$recom['cruise_rewrite']."-".$recom['cruise_id']; ?>.html" class="acomment red">...More Details >></a></p>
                                    <p class="f17 pcomment fl">Price from: <strong class="red">$<?php echo $recom['cruise_price']; ?></strong></p>
                                </div>
                                <?php
                            }
                        }
                        ?>
                    </div>
                    <div class="item">
                        <?php
                        $i = 1;
                        if(isset($recommended) && $recommended != NULL){
                            foreach($recommended as $recom){
                                ?>
                                <div onclick="remcomen(this, <?php echo $i; ?>)" class="fl boitem w97 pdl14 pdr14 pdb10 pdt6 <?php if($i ==1) { echo 'bgr_fff boxactive';} ?> ">
                                    <a href="<?php echo base_url()."tours/".$recom['tours_rewrite']."-".$recom['tours_id']; ?>.html" class="red fl min30" title="<?php echo ucfirst($recom['tours_title']); ?>">
                                        <?php echo ucfirst($recom['tours_title']); ?></a>
                                    <img src="<?php echo base_url(); ?>uploads/tours/thumb/<?php echo $recom['tours_image']; ?>" width="90" height="55" class="fl bder_rdus3 bder_d5 mgt6 imgpo" alt="<?php echo ucfirst($recom['tours_title']); ?>" title="<?php echo ucfirst($recom['tours_title']); ?>" />
                                </div>
                                <?php $i++; } } ?>
                        <?php
                        if(isset($recocruise) && $recocruise != NULL){
                            foreach($recocruise as $recom){
                                ?>
                                <div onclick="remcomen(this, <?php echo $i; ?>)" class="fl boitem w97 pdl14 pdr14 pdb10 pdt6 ">
                                    <a href="<?php echo base_url()."luxury-cruises/".$recom['cruise_rewrite']."-".$recom['cruise_id']; ?>.html" class="red fl min30" title="<?php echo ucfirst($recom['cruise_name']); ?>">
                                        <?php echo ucfirst($recom['cruise_name']); ?></a>
                                    <img src="<?php echo base_url(); ?>uploads/cruises/thumb/<?php echo $recom['cruise_image']; ?>" width="90" height="55" alt="<?php echo ucfirst($recom['cruise_name']); ?>" title="<?php echo ucfirst($recom['cruise_name']); ?>" class="fl bder_rdus3 bder_d5 mgt6 imgpo" />
                                </div>
                                <?php } } ?>
                    </div>
                </div>
                <div class="cls" style="margin-bottom:15px"></div>
                <img src="<?php echo base_url(); ?>public/images/icon_recomment.png" class="fl" width="23" alt="Recommended Vietnam tours - Vietnam holidays" title="Recommended Vietnam tours - Vietnam holidays" height="23"/>
                <h2 class="red fl f14 pdt4 pdl12">HOLIDAY TYPES</h2>
  				<div class="item bder_rdus3 mgb10">
                    <div class="fl mgt15 w627">
                    <?php if(isset($holiday) && $holiday != NULL){ unset($holiday[5]); foreach($holiday as $items){ ?>
                    	<div class="holtype">
                            <?php if($items['id'] == 5){ ?>
                            <a href="<?php echo base_url()."luxury-cruises.html"; ?>"><img src="<?php echo base_url()."uploads/holiday/".$items['logo']; ?>" width="200" height="133" alt="<?php echo $items['name']; ?>" title="<?php echo $items['name']; ?>" /></a>
                            <h3><a href="<?php echo base_url()."luxury-cruises.html"; ?>" class="red" title="<?php echo $items['name']; ?>"><?php echo $items['name']; ?></a></h3>
                            <?php }else{ ?>
                            <a href="<?php echo base_url().$items['rewrite']."-".$items['id']; ?>.html"><img src="<?php echo base_url()."uploads/holiday/".$items['logo']; ?>" width="200" height="133" alt="<?php echo $items['name']; ?>" title="<?php echo $items['name']; ?>" /></a>
                            <h3><a href="<?php echo base_url().$items['rewrite']."-".$items['id']; ?>.html" class="red" title="<?php echo $items['name']; ?>"><?php echo $items['name']; ?></a></h3>
                            <?php } ?>
                        </div>
                    <?php } } ?>
                    	<div class="cls"></div>
                    </div>
                </div>
                <div class="fl w332 pdt20"> <img src="<?php echo base_url(); ?>public/images/icon_photo.png" width="23" height="23" alt="VIETNAM HOLIDAYS PHOTOS" title="VIETNAM HOLIDAYS PHOTOS" class="fl"/> <h3><a href="<?php echo base_url(); ?>photo-albums.html" class="red fl f14 pdt4 pdl12" title="HOLIDAY PHOTOS">HOLIDAY PHOTOS</a></h3>
                    <div class="item pdt10">
                        <a href="<?php echo base_url(); ?>photo-albums.html"><img src="<?php echo base_url(); ?>public/images/01.jpg" width="145" height="103" class="fl mgt3 mgr3 bder_d5 bder_rdus3" alt="Photos Vietnam holidays" title="Photos Vietnam holidays" /></a>
                        <a href="<?php echo base_url(); ?>photo-albums.html"><img src="<?php echo base_url(); ?>public/images/02.jpg" width="145" height="103" class="fl mgt3 mgr3 bder_d5 bder_rdus3" alt="Photos Vietnam tours" title="Photos Vietnam tours" /></a>
                        <a href="<?php echo base_url(); ?>photo-albums.html"><img src="<?php echo base_url(); ?>public/images/03.jpg" width="145" height="103" class="fl mgt3 mgr3 bder_d5 bder_rdus3" alt="Vietnam tours" title="Vietnam tours" /></a>
                        <a href="<?php echo base_url(); ?>photo-albums.html"><img src="<?php echo base_url(); ?>public/images/04.jpg" width="145" height="103" class="fl mgt3 mgr3 bder_d5 bder_rdus3" alt="Tours in Vietnam" title="Tours in Vietnam" /></a>
                    </div>
                </div>
                <div class="w296 fl pdt20"> <img src="<?php echo base_url(); ?>public/images/icon_video.png" width="23" height="23" alt="HOLIDAY VIDEOS" title="HOLIDAY VIDEOS" class="fl"/><h3><a href="<?php echo base_url(); ?>videos.html" class="red fl f14 pdt4 pdl12" title="HOLIDAY VIDEOS">HOLIDAY VIDEOS</a></h3>
                    <div class="item pdt10">
                        <iframe width="296" height="222" src="//www.youtube.com/embed/V9dxGOfU0_8?rel=0" frameborder="0"></iframe>
                    </div>
                </div>
            </div>
            <div class="fr w293 pdt12">
                <?php $this->load->view('public/test'); ?>
                <?php $this->load->view('public/news'); ?>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function remcomen(that, i) {
        $('.bo').hide();
        $('.an'+i).show();
        $('.boitem').removeClass('bgr_fff boxactive');
        $(that).addClass('bgr_fff boxactive');
    }
</script>